﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonAdmin.Dto
{
	[SugarTable("Dictionary")]
	public class DictionaryDto
	{
		/// <summary>
		/// 主键，一级：01，二级001开头
		/// </summary>
		[SugarColumn(IsPrimaryKey = true)]
		public string Id { get; set; }
		/// <summary>
		/// 字典名
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 父级Id,-1代表一级字典
		/// </summary>
		public string ParentId { get; set; } = "-1";		
		/// <summary>
		/// 是否可用，删除时用逻辑删除
		/// </summary>
		public bool IsEnable { get; set; } = true;
	}
}
